using UnityEngine;

namespace Live2D.Cubism.Core.Unmanaged
{
	public static unsafe class Vector3PointerUtil
	{
		public static void Add(Vector3* self, int startIdx, float* dataP, int vectorCount)
		{
			var offset = 0;
			for (int i = 0; i < vectorCount; i++)
			{
				Vector3 pos;
				pos.x = dataP[offset];
				pos.y = dataP[offset + 1];
				pos.z = 0;
				offset += 2;
				self[startIdx + i] = pos;
			}
		}
	}
}